/* This is a simple program that prints out the number 
 * sequence 1 to max, each number on a new line.
 * Uses ecrire() to write to the console
 */

#include "increment.h"

void increment(int n){
  char buffer[10];
  int i;
  
  if(n < 1){
    ecrire("n must at least be 1\n");
    quitter(FAILURE);
  }

  for(i=1; i<=n; i++){
    ecrire(itoa(i,buffer,10));
    ecrire("\n");
  }
  
  quitter(SUCCESS);
}
